Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

407
Visualizações
Vue Js-Error in callback for watcher "function () { return this._data.$$state }": "Error: [vuex] do not mutate vuex store state outside mutation

Screenshot of the error I get in the console

The method I use

In mounted

MapState in the Computed

My code is working. But I don't understand this error. I couldn't find the solution. I ask for your kind help.

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

This is because you mutate state outside mutations and it's there:

this.systemstatus.splice(i, 1)

You could copy systemstatus by using spread operator, for example:

const systemStatusCopy = [...this.systemstatus]

and you won't get any errors, however state won't change either, but if you need it to change in a store, then add mutation and commit a mutation whenever you need.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda